package com.m.pojo;

public class Student extends Person {
    public int score;

    public Student(String name, int age, int score) {
        super(name, age);
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    private int goGoGo() {
        return 666;
    }
    private void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "score=" + score +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String hello() {
        return "Student:hello";
    }
}
